//this file is to describe the node and which flow it connect
//is writed by mark on 2014/2/25
#ifndef CLIENT_CONNECT_H
#define cLIENT_CONNECT_H

#include<stdio.h>
#include"node.h"
#include"use_hash.h"
#define MAX_NODE_NUM 32

struct client_connect_node
{
	record_key_t *rkt;
	struct sockaddr_in *Node;

	long long flow_count;
	long long packet_count;	
};


struct client_connect
{
	struct client_connect_node head[MAX_NODE_NUM];
	unsigned short real_node_num;

	long long flow_count;
	long long packet_count;
};

#endif

extern void init_client_connect(struct client_connect *CC);
